//
//  NSObject+CDKVC.h
//  003-自定义KVC流程
//
//  Created by 钟啟兵 on 2021/7/28.
//  Copyright © 2021 Cooci. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSObject (CDKVC)

///这是两个默认kvc 方法
- (void)cd_setValue:(id)value forKey:(NSString *)key;
- (id)cd_valueForKey:(NSString *)key;

/// 这个方法默认返回true
+ (BOOL)cd_accessInstanceVariablesDirectly;

/// 这两个方法默认实现抛出异常
- (void)cd_setValue:(id)value forUndefinedKey:(NSString *)key;
- (id)cd_valueForUndefinedKey:(NSString *)key;
    
@end

NS_ASSUME_NONNULL_END
